package com.spa.application.command.admin;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TicketAddCommand {

    @NotBlank(message = "优惠券名称不能为空")
    private String name;

    @NotNull(message = "优惠券类型不能为空")
    private Integer type;

    @NotNull(message = "最低消费金额不能为空")
    private Integer threshold;

    @NotNull(message = "优惠方式不能为空")
    private Integer discountType;

    @NotNull(message = "限制不能为空")
    private Integer overflow;

    @NotNull(message = "优惠券面额不能为空")
    private Integer rmb;

    private Integer discount;

    private Integer expirationDate;

    @NotNull(message = "生效方式不能为空")
    private Integer comeIntoForceType;

    private Date beginDate;

    private Date endDate;

    @NotNull(message = "发放总量不能为空")
    private Integer quantityLimit;
}
